-- GENERATED SPELL FOR [Abomination] --


function spell0_17898(pUnit, Event) --@Disease Cloud,Self--
pUnit:FullCastSpellOnTarget(31607,pUnit)
pUnit:RegisterEvent('Sorts_17898', 0, 1)
end

function spell1_17898(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(31610,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17898', 2000, 1)
end

function Sorts_17898(pUnit, Event)
local choix_sorts_17898 = math.random(0, 1)
if choix_sorts_17898 == 0 then
pUnit:RegisterEvent('spell0_17898', 1, 1)
end
if choix_sorts_17898 == 1 then
pUnit:RegisterEvent('spell1_17898', 1, 1)
end
end

function mob17898_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17898', math.random(1500, 3000), 1)
end

function mob17898_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17898_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17898_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17898, 1, 'mob17898_Action')
RegisterUnitEvent(17898, 2, 'mob17898_Leave')
RegisterUnitEvent(17898, 3, 'mob17898_Kill')
RegisterUnitEvent(17898, 4, 'mob17898_Die')
